﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace MyFace
{
    class Carta
    {
        Texture2D Textura;
        Vector2 Posicao;
        float Escala = 1f;

        int Altura, Largura;

        public Carta(Vector2 posicao)
        {
            Posicao = posicao;
        }

        public void Load(ContentManager Content)
        {
            Textura = Content.Load<Texture2D>(@"Jogo\Tile Cartas");
            Altura = Textura.Height;
            Largura = Textura.Width;
        }

        public void Update(GameTime gameTime, string PosicaoDaSeta)
        {
            Largura = Convert.ToInt16(Largura * Escala);
            Altura = Convert.ToInt16(Altura * Escala);
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(Textura, Posicao, new Rectangle(0,0, Largura, Altura), Color.White);
        }
    }
}
